| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

ContentLoadResult.h
1 // ContentLoadResult.h
3 //
5
6 namespace nkGraphics
7 {
11 enum class CONTENT_LOAD_RESULT_STATE
12 {
13 SUCCESS = 0,
14 PARTIAL,
15 FAILURE
16 } ;
17
21 template<typename T>
22 class ContentLoadResult
23 {
24 public :
25
26 // Attributs
27 std::vector<std::string> _errorMessages ;
28 std::vector<T*> _loadResult ;
29 CONTENT_LOAD_RESULT_STATE _success = CONTENT_LOAD_RESULT_STATE::SUCCESS ;
30 } ;
31
32 typedef ContentLoadResult<Sampler> ContentLoadResultSampler ;
33 typedef ContentLoadResult<Texture> ContentLoadResultTexture ;
34
35 typedef ContentLoadResult<Buffer> ContentLoadResultBuffer ;
36 typedef ContentLoadResult<ConstantBuffer> ContentLoadResultConstantBuffer ;
37 typedef ContentLoadResult<Shader> ContentLoadResultShader ;
38 typedef ContentLoadResult<ShaderMemorySlot> ContentLoadResultShaderMemorySlot ;
39 typedef ContentLoadResult<Program> ContentLoadResultProgram ;
40
41 typedef ContentLoadResult<Pass> ContentLoadResultPass ;
42 typedef ContentLoadResult<Compositor> ContentLoadResultCompositor ;
43 typedef ContentLoadResult<CompositorNode> ContentLoadResultCompositorNode ;
44
45 typedef ContentLoadResult<Mesh> ContentLoadResultMesh ;
46 typedef ContentLoadResult<Node> ContentLoadResultNode ;
47
48 typedef ContentLoadResult<BlendState> ContentLoadResultBlendState ;
49 typedef ContentLoadResult<DepthStencilState> ContentLoadResultDepthStencilState ;
50 typedef ContentLoadResult<RasterState> ContentLoadResultRasterState ;
51
52 using ContentLoadResultCamera = ContentLoadResult<Camera> ;
53 using ContentLoadResultRenderQueue = ContentLoadResult<RenderQueue> ;
54 }
nkGraphics::ContentLoadResultRasterState
ContentLoadResult< RasterState > ContentLoadResultRasterState
Load result for raster states.
Definition: ContentLoadResult.h:50
nkGraphics::CONTENT_LOAD_RESULT_STATE::SUCCESS
@ SUCCESS
Fully successful parsing.
nkGraphics::ContentLoadResult::_success
CONTENT_LOAD_RESULT_STATE _success
The success flag of loading.
Definition: ContentLoadResult.h:29
nkGraphics::ContentLoadResultShader
ContentLoadResult< Shader > ContentLoadResultShader
Load result for shaders.
Definition: ContentLoadResult.h:37
nkGraphics::ContentLoadResultPass
ContentLoadResult< Pass > ContentLoadResultPass
Load result for passes.
Definition: ContentLoadResult.h:41
nkGraphics::CONTENT_LOAD_RESULT_STATE
CONTENT_LOAD_RESULT_STATE
The available values for a parsing attempt result.
Definition: ContentLoadResult.h:12
nkGraphics::ContentLoadResultTexture
ContentLoadResult< Texture > ContentLoadResultTexture
Load result for texture.
Definition: ContentLoadResult.h:33
nkGraphics::ContentLoadResultMesh
ContentLoadResult< Mesh > ContentLoadResultMesh
Load result for meshes.
Definition: ContentLoadResult.h:45
nkGraphics::ContentLoadResultCompositor
ContentLoadResult< Compositor > ContentLoadResultCompositor
Load result for compositors.
Definition: ContentLoadResult.h:42
nkGraphics::ContentLoadResultDepthStencilState
ContentLoadResult< DepthStencilState > ContentLoadResultDepthStencilState
Load result for depth and stencil states.
Definition: ContentLoadResult.h:49
nkGraphics::CONTENT_LOAD_RESULT_STATE::FAILURE
@ FAILURE
Fully failed parsing.
nkGraphics::ContentLoadResultBuffer
ContentLoadResult< Buffer > ContentLoadResultBuffer
Load result for buffers.
Definition: ContentLoadResult.h:35
nkGraphics::ContentLoadResult::_errorMessages
std::vector< std::string > _errorMessages
The error messages, if any.
Definition: ContentLoadResult.h:27
nkGraphics::ContentLoadResultProgram
ContentLoadResult< Program > ContentLoadResultProgram
Load result for programs.
Definition: ContentLoadResult.h:39
nkGraphics::ContentLoadResultConstantBuffer
ContentLoadResult< ConstantBuffer > ContentLoadResultConstantBuffer
Load result for constant buffers.
Definition: ContentLoadResult.h:36
nkGraphics::ContentLoadResultSampler
ContentLoadResult< Sampler > ContentLoadResultSampler
Load result for samplers.
Definition: ContentLoadResult.h:32
nkGraphics::ContentLoadResultCompositorNode
ContentLoadResult< CompositorNode > ContentLoadResultCompositorNode
Load result for compositor nodes.
Definition: ContentLoadResult.h:43
nkGraphics::ContentLoadResultShaderMemorySlot
ContentLoadResult< ShaderMemorySlot > ContentLoadResultShaderMemorySlot
Load result for memory slots.
Definition: ContentLoadResult.h:38
nkGraphics::ContentLoadResult
Holds information about an attempt of parsing content declaration sources.
Definition: ContentLoadResult.h:23
nkGraphics::ContentLoadResult::_loadResult
std::vector< T * > _loadResult
The resulting content, if any.
Definition: ContentLoadResult.h:28
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::CONTENT_LOAD_RESULT_STATE::PARTIAL
@ PARTIAL
Partial, there were successful declaration loading alongside failures.
nkGraphics::ContentLoadResultNode
ContentLoadResult< Node > ContentLoadResultNode
Load result for nodes.
Definition: ContentLoadResult.h:46
nkGraphics::ContentLoadResultBlendState
ContentLoadResult< BlendState > ContentLoadResultBlendState
Load result for blend states.
Definition: ContentLoadResult.h:48